package com.change.study.mongodb.domain;

import java.util.UUID;

import com.change.study.data.entity.User;

public class Utils {

	public static String getid() {
		return UUID.randomUUID().toString().replace("-", "").toLowerCase();
	}
	public static User getSimpleUser(User user){
		User resutl=new User();
		resutl.setId(user.getId());
		resutl.setHeadimg(user.getHeadimg());
		resutl.setUsername(user.getUsername());
		resutl.setName(user.getName());
		return resutl;
		
	}
}
